package org.chenbingkang.jsonpath;

import com.jayway.jsonpath.JsonPath;

public class Application {
    public static void main(String ... args){
        String json="{\"sex\":\"男\",\"name\":\"张三\",\"age\":21}";
       String value = JsonPath.parse(json).read("$.sex");
       System.out.println(value);
    }
}
